<template>
  <div  v-title data-title="首页">
    <div class="mianban">
      <div class="leftdiv">
        <leftnavigation @index="msgindex" ></leftnavigation>
      </div>
      <div class="centerdiv">
        <el-carousel :interval="4000" type="card" height="150px">
          <el-carousel-item v-for="(item,index) in 6" :key="index">
            <img class="imglbt" v-lazy="poot+'manongyizhanFile/轮播图/'+(index+1)+'.png'" />
          </el-carousel-item>
        </el-carousel>
        <centernavigation ></centernavigation>
      </div>
      <div class="rightdiv">
        <rightnavigation />
      </div>
    </div>
  </div>
</template>
 <script>
import leftnavigation from "@/components/view/leftnavigation";
import rightnavigation from "@/components/view/rightnavigation";
import centernavigation from "@/components/view/centernavigation";
import { mapState, mapGetters, mapMutations, mapActions } from "vuex";
export default {
  name: "App",
  data() {
    return {
      tabPosition: "left",
      id:''
    };
  },
  components: {
    leftnavigation,
    rightnavigation,
    centernavigation
  },
  methods:{
   msgindex(index){
     this.id=index
     console.log(this.id)
   }
  },
  mounted() {
  },
    computed: {
    ...mapState(["poot"]),
  },
};
</script>
<style>
.imglbt {
  width: 100%;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
.el-tabs {
  margin-top: 10px;
  margin-left: 60px;
}
.leftdiv {
  margin-top: 20px;
  width: 130px;
  background-color: #161616;
  margin-right: 30px;
}
.centerdiv {
  margin-top: 20px;
  width: 700px;
  background-color: #161616;
}
.rightdiv {
  margin-top: 20px;
  width: 300px;
  background-color: #161616;
  margin-left: 30px;
}
.mianban {
  margin-top: 20px;
  height: 800px;
  background-color: #1e1e1e;
  display: flex;
  /* align-items: center; */
  justify-content: center;
}
</style>
